<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\User */
$this->registerCssFile('/css/user.css');
$this->title = Yii::$app->user->identity->username . '的个人资料';
?>
<div class="content" id="contentframe">
	<div class="user-main">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="media media-user">
					<div class="media-left"></div>
					<div class="media-body">
						<h2 class="media-heading">
							<a href="javascript:;"><?=Yii::$app->user->identity->username?></a>
						</h2>
						<div class="time">
							注册时间：<?=date('Y-m-d H:i:s',Yii::$app->user->identity->created_at)?><br>上次登录：<?=date('Y-m-d H:i:s',Yii::$app->user->identity->lastlogtime)?><br>
						</div>
					</div>
				</div>
				<div class="media-footer col-lg-3">
					<div class="label label-primary">
						<i class="fa fa-shield"></i> 尚好币:<?=Yii::$app->user->identity->money?>
					</div>

				</div>
			</div>
			
			
			
			<?php

$form = ActiveForm::begin([
    'id' => 'form-pay',
    'options' => [
        'class' => "cd-form"
    ],
    'action' => "/user/pay.html"
]);
?>
				<h2 class="media-heading"
				style='padding-right: 15px; padding-left: 15px;'>
				<a href="javascript:;">金币充值</a>(充值金币必须大于1并且为数字,1金币=1元人民币)
			</h2>
			<div class="form-group  col-md-2 col-sm-3 col-xs-6 col-lg-3">
				<input style='text-align: center;' type='text' class='form-control'
					name='num' value=1>
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary" name="login-button">充值</button>
			</div>
			<?php ActiveForm::end(); ?>
			
		</div>


	</div>

</div>
